home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 March / Macworld (1998-03) (Disk 1).dmg / Shareware World / Utilities / Text Processing / Alpha / Help / Alpha Commands next >
Encoding:
Text File  |  1997-11-12  |  35.5 KB  |  685 lines  |  [TEXT/ALFA]

  1. ==============================================================================
  2. = Alpha Commands
  3. ==============================================================================
  4.  
  5. In this list of routines, text between '<' and '>' is a placeholder for a 
  6. required parameter, text between '[' and ']' is a placeholder for an 
  7. optional parameter, and the '|' signifies a choice of two or more 
  8. alternatives.  A '+' signifies that the previous symbol can be present one 
  9. or more times, while a '*" means zero or more times.  Some commands have no 
  10. parameters, and are only expected to be called interactively.
  11.  
  12.  
  13.  
  14. The following are Alpha-specific tcl routines:
  15.  
  16. • abortEm - aborts whatever is currently happening
  17. • abbrev <label> <string> [<mode>] - register a label for <string>. See 
  18. 'execAbbrev'.
  19. • addAlphaChars <chars> - Add <chars> to the list of characters that internally 
  20.   are caught by the 'isalnum' and 'isalpha' calls. Can be used to augment 
  21.   the list of characters that the \w pattern in a regular expression 
  22.   responds to. Use w/ care.
  23. • addMenuItem [-m] [-l <meta-characters>] <menu name> <item name> - Convert
  24.   item to menu form and add to specified menu. If '-m' specified, menu 
  25.   form conversion not done. The '-l' option allows you to use menu meta 
  26.   characters as text of menu items. If the '-l' option is used, the 
  27.   <meta-characters> string is interpreted for menu item attributes, and 
  28.   meta-characters in <item name> are included in the menu item text 
  29.   literally. For example: 
  30.       addMenuItem -m -l "/B" "Hello/C" 
  31.   would appear as the text "Hello/C" in the menu, and have "B" as its 
  32.   command equivalent.
  33. • addDef <var> <val> - Permanently save an association between the var 
  34.   'var' and 'val'. 'addDef' and 'addArrDef' are now the sanctioned way to 
  35.   save values between sessions. Also see 'removeDef' and 'removeArrDef'.
  36. • addArrDef <var> <field> <val> - Permanently save an association between 
  37.   the var var(field) and 'val'.
  38. • AEBuild [<flags>] <app (name|creator)> <aesuite> <aeevent> [<event parameters>]*  -
  39.   Build and send an apple-event. 'AEBuild' is apple's code of the same 
  40.   name. Each "event parameter" is two parameters, a parameter type and 
  41.   the data for the parameter. See the AEBuild doc for more details, 
  42.   :Tcl:SystemCode:think.tcl for examples. The flags are '-r' (wait for reply), 
  43.   '-q' (queue reply, in which case 'handleReply' (in appleEvents.tcl) is 
  44.   called with the reply as a parameter, and '-t <timeout>' specifies the 
  45.   timeout in ticks.
  46. • alertnote message_string
  47.   This command will display message_string in a standard Macintosh alert box.
  48. • alphaHelp - display Alpha help.
  49. • ascii (see bindings).
  50. • askyesno [-c] prompt
  51.   This command will display a Macintosh alert box with 'prompt' displayed
  52.   with the push buttons Yes and No. The command will return the 
  53.   string "yes" or "no". The '-c' flag specifies that a cancel button be 
  54.   used as well.
  55. • backSpace - delete selection, or a single char if no selection.
  56. • backwardChar - moves insertion one char back
  57. • backwardCharSelect - extends selection one char back
  58. • backwardDeleteWord - deletes previous word
  59. • backwardWord - moves insertion one word back
  60. • balance - selects smallest set of parens, braces, or 
  61.   brackets that encloses the current selection
  62. • beep
  63. • beginningBufferSelect - extend selection to the 
  64.   beginning of the buffer
  65. • beginningLineSelect - extend selection to the 
  66.   beginning of the line
  67. • beginningOfBuffer - move insertion to the beginning 
  68.   of the buffer
  69. • beginningOfLine - move insertion to the beginning of 
  70.   the line
  71. • bind  (see bindings)
  72. • blink <pos> - blink cursor at 'pos'
  73. • breakIntoLines <string> - return 'string' with 
  74.   carriage returns and spaces inserted to satisfy 
  75.   'leftFillColumn' and 'fillColumn' variables.
  76. • bringToFront <winName> - Bring named window to front.
  77. • buttonAlert <prompt> [<button>…] - Create a dialog w/ the specified 
  78.   buttons, returning the one selected.
  79. • capitalizeRegion - capitalize all words in selected 
  80.   region 
  81. • capitalizeWord - capitalize word
  82. • centerRedraw - redraw window with current line in 
  83.   the middle.
  84. • clear - clear selected text
  85. • closeAll - close all windows
  86. • colorTriple [<prompt>] [<red> <green> <blue>] - Prompts user to choose 
  87.   color. If specified, the input RGB value is used as the initial color on 
  88.   the colorpicker.
  89. • copy - copy region
  90. • cp <fromName>+ <toName>
  91.   This command will copy the file fromName and name the new file toName, 
  92.   overwriting any existing file. This command copies both data forks, and 
  93.   the Finder information. 
  94. • createTagFile - searches all files in current file set 
  95.   and saves the locations of any function declarations
  96.   in a file called 'cTAGS'.
  97. • createTMark <name> <pos> - create a temporary 'mark' 
  98.   at location 'pos'. 
  99. • currentPosition - displays current and total bytes.
  100. • cut - deletes and saves region
  101. • deleteChar - delete char AFTER cursor
  102. • deleteMenuItem [-m] <menu name> <item name> - Convert item to menu form 
  103.   and delete from specified menu. If '-m' specified, menu form conversion 
  104.   not done. 
  105. • deleteModeBindings <mode> - Delete all bindings for specified mode.
  106. • deleteSelection - delete current position, don't save
  107. • deleteWord - delete word after cursor
  108. • describeBinding - display the binding of the next typed key sequence. 
  109. • deleteText <pos1> <pos2> - remove text between 'pos1' 
  110.   and 'pos2'
  111. • dialog [<-w width>|<-h height>|<-b title l t r b>|<-c title val l t r b>|
  112.             <-t text l t r b>|<-e text l t r b>|<-r text val l t r b>|
  113.             <-p l t r b>]+ 
  114.   Create and display a dialog.  '-w' and '-h' allow width and height of 
  115.   dialog window to be set.  '-b', '-c', '-r', '-t', '-e' and '-p' allow 
  116.   buttons, checkboxes, radio buttons, static text, editable text and gray 
  117.   outlines to be created, respectively.  All control types (except gray 
  118.   outlines) require specification of a title or text, together with left, 
  119.   top, right, and bottom coordinates.  Checkboxes and radioboxes have an 
  120.   additional parameter, the default value.  At least one button must be 
  121.   specified.  The return value is a list containing resulting values for 
  122.   all buttons, radioboxes, checkboxes, and editable textboxes (static text 
  123.   is ignored).  Buttons have value '1' if chosen, '0' otherwise.  The 
  124.   dialog box exits at the first button press.
  125.  
  126. • dirs - show current directory stack. See 'pushd' and 'popd'.
  127. • display [-w <win>] <pos> - move pos's line to top of screen.
  128. • displayMode <mode> - Up to four characters of the 'mode' string are 
  129.   displayed in the status line at the bottom of a window.
  130. • dosc [<-c 'sign' | -n appName>] [-k 'clas'] [-e 'evnt'] <-s string | -f fileName> [<-t timeout|-r>]
  131.   Send an AppleEvent, by default class 'misc', event 'dosc'.
  132.    -c 'sign' 
  133.            "sign" is a four-letter creator signature of a running application.
  134.    -n appName
  135.            "appName" is the name of a running application.
  136.    -k 'clas'
  137.            "clas" is a four-letter event class.
  138.    -e 'evnt'
  139.            "evnt" is a four-letter event class.
  140.    -s string
  141.            "string" is the text of a script to send to the other app.
  142.    -f fileName
  143.            "fileName" is the complete or relative pathname of a file the other 
  144.            application should execute.
  145.    -t timeout
  146.            "timeout" is the number of ticks Alpha should wait for a response. A 
  147.            timeout of "0" means wait forever.
  148.    -r
  149.            Do not wait for reply.
  150.    -q
  151.            Queue reply.
  152.            
  153.    If neither of the '-c' and '-n' options is chosen, the PPC Browser is 
  154.    used. Either '-s' or '-f' must be chosen. Thus, you can have "Alpha 
  155.    5.02" and "Alpha 5.02 Copy" sending Apple events to each other, or they 
  156.    can send events to a remote server such as Apple's ToolServer. 
  157.    "$HOME:Tcl:UserCode:createStuffitArchive.tcl" contains examples of 
  158.    controlling Stuffit Deluxe via this command.
  159. • downcaseRegion - changes all uppercase letters to 
  160.   lowercase in current region
  161. • downcaseWord - changes all uppercase letters to 
  162.   lowercase in current word
  163. • dumpColors - dump current foreground and background
  164.   colors into the current buffer in Alpha-readable
  165.   format.
  166. • echo <string>* - echo the strings (used 
  167.   in shells).
  168. • edit [-r] [-m] [-c] [-w] [-g <l> <t> <w> <h>] <name> - Open a file in new 
  169.   window. '-c' means don't prompt for duplicate win if file already open.
  170.   '-r' means open the file read-only. '-m' means omit the function titlebar 
  171.   menu and present only the marks titlebar menu, which is labeled with the 
  172.   contents of 'markLabel'. The '-g' option allows left and top coords to 
  173.   be specified, plus width, and height. All or none. '-w' allows you to
  174.   bypass the "Wrap" dialog for files with long rows.
  175. • enableMenuItem <menuName> <item text> <on|off> - Either enable or 
  176.   disable the menu item of user menu 'menuName' that has text '<item 
  177.   text>'. Note that unless the menu is not only created, but also already
  178.   inserted, this command has no effect. 
  179. • endBufferSelect - extend selection to the end of the 
  180.   buffer
  181. • endKeyboardMacro - stop recording keyboard macro
  182. • endLineSelect - extend selection to the end of line
  183. • endOfBuffer - move insertion to the end of the buffer
  184. • endOfLine - move insertion to the end of the line
  185. • enterSearchString - use current selection for future searches.
  186. • eventHandler [class] [event] [proc] - Register 'proc' to handle the class 
  187.   and event specified. Class and event are each 4 char args. 'proc' takes 
  188.   a single argument that specifies the incoming event according to the 
  189.   syntax here. There is currently no provision for a reply.
  190. • exchangePointAndMark - exchange the current 'mark' 
  191.   w/ the current insertion point
  192. • execAbbrev - looks at current word and tries to expand it. Labels are 
  193.   specified using 'abbrev'.
  194. • execute - prompt user for a function or macro. The 
  195.   tab key acts as a "completion" command.
  196. • executeKeyboardMacro - execute the current keyboard 
  197.   macro
  198. • fileInfo - prompts for a file, and displays type, 
  199.   creator, sizes of both data and resource forks, last
  200.   modification time, and creation time
  201. • fileRemove - prompts for a file, and removes it
  202. • find - bring up the find dialog
  203. • findAgain - repeat search forward
  204. • findAgainBackward - repeat search backward
  205. • findFile [<path>] - open a file in a new window. An optional path parameter
  206.   specifies a default directory or file.
  207. • findInNextFile - search next file.
  208. • findTag - prompt user for a function name and attempt 
  209.   to use the file 'cTAGS' to locate the function's 
  210.   definition
  211. • float -m <menu> [<-h|-w|-l|-t|-M> <val>] [-n winname] [-z tag] -
  212.   Takes a created menu (not necessarily in the menubar), and makes a 
  213.   floating window out of it. Returns integer tag that is used to remove 
  214.   the window. NOT DYNAMIC!  W/ no options returns all currently defined menus.
  215.   Displayed w/ system floating window WDEF if system 7.5, plainDBox 
  216.   otherwise. -h through -M change width, height, left margin, top margin, and
  217.   margin between buttons. -z allows a ten-char tag to be specified for 
  218.   'floatShowHide'.
  219. • floatShowHide <on|off> <tag> - Shows or hides all floats w/ specified 
  220.   tag. Tags of current modes are automatically shown/hidden.
  221. • forwardChar - move insertion one character forward
  222. • forwardCharSelect - extend selection one character 
  223.   forward
  224. • forwardWord - move insertion one word forward
  225. • freeMem - give a rough approximation of the current 
  226.   memory reserves of ALPHA
  227. • get_directory [-p <prompt>]
  228.   This command will display a standard Macintosh file dialog and request the user 
  229.   select a folder. The command will return the selected folder's full path name, or an 
  230.   empty string if the Cancel button was selected.
  231. • getAscii - displays the ASCII code for character at 
  232.   current insertion point
  233. • getChar - waits for a keystroke, returns ascii.
  234. • getModifiers - returns current modifiers mask. "OR" of several values, 
  235.     cmdKey                        = 0x01,                        /* Bit 0 of high byte */
  236.     shiftKey                    = 0x02,                        /* Bit 1 of high byte */
  237.     alphaLock                    = 0x04,                        /* Bit 2 of high byte */
  238.     optionKey                    = 0x08,                        /* Bit 3 of high byte */
  239.     controlKey                    = 0x10,                        /* Bit 4 of high byte */
  240.     rightShiftKey                = 0x20,                        /* Bit 5 of high byte */
  241.     rightOptionKey                = 0x40,                        /* Bit 6 of high byte */
  242.     rightControlKey                = 0x80,                        /* Bit 7 of high byte */
  243. • getColors - returns list of colors/hypertext for current document. 
  244.   Format is list of lists, each sublist consisting of file offset, color 
  245.   index, and possibly a hypertext command.
  246. • getfile [<prompt>] [<path>]
  247.   This command will display an SFGetFile() and return the full path name of the 
  248.   selected file, or an error if CANCEL button was selected.  An optional path 
  249.   parameter specifies a default directory or file.
  250. • getFileInfo <file> <arr> - Given a file name, creates an array called 
  251.   'arr' in the current context, containing fields 'created', 'creator', 
  252.   'modified', 'type', 'datalen', and 'resourcelen'. 'created' and 
  253.   'modified' are in a form suitable for the command 'mtime'.
  254. • getGeometry [win] - return a TCL list containing the left 
  255.   edge of the current window, the top, the width, and height.
  256. • getline <prompt> <default>
  257.   This command will display a Macintosh alert box with prompt displayed, a 
  258.   text edit field with default initially in the field, and with the push 
  259.   buttons OK, Cancel.. The command will return the text entered into the 
  260.   text edit field by the user, or an empty string if the user selected the 
  261.   Cancel button. 
  262. • getMainDevice - return a list containing the left, top, right, and 
  263.   bottom of the rectangle defining the main device.
  264. • getMark - return the current mark.
  265. • getNamedMarks [-w <win>] [-n] - 
  266.   return list of all permanent marks in open files. Each
  267.   element of a list describes one mark as a sublist of the mark's name, 
  268.   the complete pathname of the mark's file, the position of the first 
  269.   character in the first line displayed, the current position, and the 
  270.   end of the selection if text is hilited, or the current position again 
  271.   if there is no hilited section. '-w' allows window name to be applied 
  272.   as filter, '-n' means only names will be returned.
  273. • getPathName - prompt the user with an SFGetFile dialog and return 
  274.   complete pathname.
  275. • getPos [-w <win>] - return the current insertion point
  276. • getScrap - returns system TEXT scrap.
  277. • getSelect - return the currently selected text, if 
  278.   any.
  279. • getText [-w <win>] <pos1> <pos2> - return the text between 'pos1' 
  280.   and 'pos2'. '-w' can be used to specify a window.
  281. • getTMarks - Return a list of temporary marks. Each item of the returned 
  282.   list is a sublist containing the mark name, the complete pathname of the 
  283.   mark, and the start and finish of the selection named by the mark. The 
  284.   following is an example of the result: 
  285.  
  286.     {{temp1 External:file.c 1312 1315} {temp2 Internal:it.h 111 111}} 
  287.  
  288. • getWinInfo [-w <win>] <arr> - Creates an array in current context 
  289.   containing info about either the current or a specified window. Array 
  290.   has fields 'state', 'platform', 'read-only', 'tabsize', 'split', 
  291.   'linesdisp' (num lines that can be seen in the window), 'currline' 
  292.   (first line displayed), and 'dirty'.
  293. • glob [-i] [-t <TYPE>] [-c <CRTR>]
  294.   The original glob provided by the UNIX version of tcl was not quite 
  295.   adequate for the more complex Macintosh file system. Issues such as 
  296.   invisible file handling, Finder type and creator filtering, and space 
  297.   handling in file names. Release 6 of tcl has dealt with the original 
  298.   problem with spaces in filenames, but the following options are provided 
  299.   to deal with additional Macintosh issues. 
  300.  
  301. Anyway, the new glob now takes several options. They are:
  302.     -i    This option causes glob to list invisible files also.
  303.     -t TYPE    This option causes glob to only list file with the 
  304.         indicated Finder file typeTYPE. This option may be 
  305.         used with the -c option.
  306.     -c CRTR    This option causes glob to only list file with the 
  307.         indicated Finder file creatorCRTR. This option may 
  308.         be used with the -t option.
  309.         Also note that the original glob would skip dot files
  310.         (i.e., file names the begin with a period) 
  311.         in the listing, unless the pattern began with a period.
  312.         Tickle extends this concept one step further on the
  313.         Macintosh, and skips spot files (i.e., file names that 
  314.         begin with '•'), unless the pattern starts with a spot.
  315. • goto <pos> - goto the position 'pos'.
  316. • gotoMark - goto named mark, use 'mark' in macros.
  317. • gotoTMark <name> - goto the temporary mark 'name'.
  318. • icon [-f <winName>] [-c|-o|-t|-q] [-g <h> <v>] - Having to do w/ 
  319.   iconifying windows. '-c' means close (iconify) window, '-o' open, '-t' 
  320.   toggle open/close, '-q' returns either a '1' for an iconified window or a 
  321.   '0' for an uniconified window, and '-g' moves the icon to horizontal 
  322.   position <h> and vertical position 'v'. Options are executed as they 
  323.   are parsed, so the '-f' option, if present, should always be first. 
  324. • icURL <URL> - passes arg to Internet Config, if present. Error if not 
  325.   present. 
  326. • icGetPref [<-t <type>] <pref name> - Gets preference from 
  327.   Internet Config. '-t' allows type to be set, '0' returns a string 
  328.   (default), '1' returns a path name, commonly used for helper apps. A 
  329.   <pref name> of 'all' returns all valid preferences.
  330. • icOpen - Opens Internet Config
  331. • insertAscii - prompts for an ASCII code and inserts
  332.   into text.
  333. • insertColorEscape <pos> <color ind> [hypertext func] - Create a color 
  334.   or style "point" for documentation purposes. Look at the file 
  335.   "docColors.tcl" for examples. The hypertext func is only used when the 
  336.   "point" is underline. See 'getColors' for info about the current file.
  337. • insertFile - prompts for a file name and inserts the
  338.   corresponding file into the current window. Not
  339.   undoable.
  340. • insertMenu <name> - insert the previously created user menu 'name' into 
  341.   the menuBar. 
  342. • insertPathName - present the user w/ a SFGetFIle dialog 
  343.   and paste the complete path-name of the chosen file
  344.   into the current window
  345. • insertText [-w <win name>] <text>* - Insert 'text' at the current 
  346.   insertion point. Mark is unchanged.
  347. • insertToTop - make the line that the insertion point 
  348.   is on the first line shown, and display the current 
  349.   line number along w/ the total number of lines in file
  350. • isearch - incremental search: searches w/o a dialog,
  351.   searches as you type the search pattern. Does not do
  352.   regular expression searches. 'matchWords' 
  353.   automatically set to false.
  354. • iterationCount - allows actions to be repeated many times. "control-u 44 
  355.   =" inserts 44 '='s into current window.  Also can be used to execute any 
  356.   function or macro (including the keyboard macro) many times.  Defaults to 
  357.   4.
  358. • keyAscii - insert ascii representation (in decimal)
  359.   of the keydown event, plus a modifier string, if 
  360.   necessary.
  361. • keyCode - insert the key code along w/ a string 
  362.   representing and modifiers into the current window.
  363.   Can be used to create bindings in 'Alphabits'.
  364. • killLine - kill text from insertion point to the end 
  365.   of the line. If the line has no text, delete the line 
  366.   and move succeeding lines up one.
  367. • killWindow - kill current window
  368. • largestPrefix <list> - Returns the longest prefix contained in all 
  369.   strings of 'list'.
  370. • launch -f <name> - launch the named app into the background. Note that 
  371.   for some yet unexplained reason, some applications (MicroSoft Word) 
  372.   won't launch completely in the background. 'launch'ing such 
  373.   applications won't insert the application into any system menu that 
  374.   specifies running applications (although "About the Finder..." will 
  375.   list it. The only way to get to such an app is through Alpha's 
  376.   'switchTo', after which the application will finish launching. The '-f' 
  377.   option gets around this by launching the application in the foreground 
  378.   instead.
  379. • lineStart <pos> - return the position of the start of
  380.   the line 'pos' is on.
  381. • listpick [-p <prompt>] [-l] [-L <def list>] <list>
  382.   This command will display a dialog with the list displayed in a List Manager 
  383.   list. If the user presses the Cancel button, an empty string is returned. If 
  384.   the user selects the Open button, or double clicks an item in the list, that 
  385.   item will be returned. If '-l' is specified, than the return is a list of 
  386.   items.
  387. • load - loads hilited text, or entire window if 
  388.   nothing is hilited. 'load'ing means that whatever 
  389.   bindings or macro definitions are present in the 
  390.   loaded text take effect
  391. • lookAt [-w <name>] <pos> - return the 'pos'th character of the 
  392.   current file, or the file named by <name> if the '-w' option is specified.
  393. • markHilite - This is the 'Hilite' from the 'Edit'
  394.   menu. If there is a currently hilited selection, the 
  395.   selection is unhilited, leaving the mark and the 
  396.   insertion point around the old selection. If there 
  397.   is not a selection, the region between the insertion 
  398.   point and the mark is selected.
  399. • markMenuItem [-m] <menuName> <item text> <on|off> [<mark char>] - Either mark or unmark
  400.   the menu item of user menu 'menuName' that has text '<item text>'. 
  401.   Note that unless the menu is not only created, but also already
  402.   inserted, this command has no effect. 
  403. • matchBrace - moves the insertion point to the 
  404.   character that matches the character after the current 
  405.   insertion point
  406. • matchIt <brace char> <pos> [<limit>] - Return pos of matching brace. Recognizes 
  407.   parenthesis, square brackets, and curly braces. Optional third argument 
  408.   specifies how many characters to search.
  409. • maxPos [-w <win>] - returns the number of characters in the front
  410.   window.
  411. • menu [-s] [-n <name>] [-i <num] [-m] [-M <mode>] [-p <procname>] <list of menu items> - 
  412.   Defines a new menu named 'name' (if provided w/ '-n' option). The menu is not 
  413.   yet inserted into the menubar. The menu commands may be nested for 
  414.   heirarchical menus, see 'AlphaBits.tcl' for examples. Alpha massages the 
  415.   function names to make them look better in the menus. 
  416.   '-c'            Ignore any menu meta-chars. Can also be done on a per-item basis 
  417.                   by appending an ampersand ('&') to the end of an item.
  418.   '-s'            Use system menu definition proc (faster).
  419.   '-n <num>'    Resource id of icon suite to use for menu title. 'ics#' 
  420.                 is the only resource that is really necessary.
  421.   '-n <name>'    Name the menu. Not necessary for submenus.
  422.   '-m'            No menu form. If not supplied, each menu item is split into 
  423.                   words at each capitalized letter.
  424.   '-p <name>'     The tcl proc named by 'name' is called w/ the menu's name
  425.                   and the item's contents when the item is chosen.
  426.   '-M <mode>'    Specifies that any bindings created by the menu are 
  427.                   specific to a given mode. This is important because mode-specific
  428.                   bindings over-ride global bindings.
  429. • message <string> - prints 'string' on the status line.
  430. • mkdir <name> - creates a directory (folder) named 
  431.   'name' in the current directory.
  432. • mousePos - Returns list <row,col> of mouse position, if the mouse is 
  433.   currently over the active window. Otherwise, return error (catch w/ 
  434.   'catch').
  435. • moveInsertionHere [-last] - move the insertion point to the 
  436.   first (or last) line displayed
  437. • moveFile <fromName> <toName>
  438.   This command will move the file fromName to toName, overwriting any 
  439.   existing file. The move can not be made across volume (disk drives) 
  440.   boundaries. 
  441. • moveWin [win name] <left> <top> - moves current or specified window. 
  442.   The window name can be "StatusWin".
  443. • mtime <time> [long|short|abbrev]
  444.   Returns a date and time string using the Macintosh International Utilities. The 
  445.   long/short/abbrev specification corresponds to the date. These are the following 
  446.   formats:
  447.     short        3/16/92 9:20:46 PM
  448.     abbrev    Mon, Mar 16, 1992 9:20:49 PM
  449.     long        Monday, March 16, 1992 9:20:43 PM
  450.   The returned value actually is in the form of a list. To get text as 
  451.   above, run the result through 'join', as in "join [mtime [now] short]".
  452. • nameFromAppl '<app sig>' - Interrogates the desktop database for the first 
  453.   existing app that has the desired signature. <app sig> is four chars 
  454.   inside single quotes.
  455. • new [-g <l> <t> <w> <h>] [-n <name>] - opens an untitled window. Can optionally 
  456.   provide left and top coordinates, plus width and height. All or none.
  457. • nextLine - move insertion point to next line
  458. • nextLineSelect - extend selection to the next line
  459. • nextLineStart <pos> - return the position of the start 
  460.   of the next line after position 'pos'.
  461. • nextSentence - go to next sentence ("fill.tcl").
  462. • nextWindow - select next window
  463. • now
  464.   Returns the current time as Macintosh seconds. This is the number of seconds that 
  465.   have elapsed since Midnight Jan 1, 1904.
  466. • oneSpace - converts whitespace surrounding insertion
  467.   into a single space.
  468. • openLine - insert a new line following the current 
  469.   one and move the insertion point to it
  470. • otherPane - If window is split, select the other pane.
  471. • pageBack - display prev screenful, move the
  472.   insertion point if 'moveInsertion' enabled
  473. • pageForward - display next screenful, move the
  474.   insertion point if 'moveInsertion' enabled
  475. • pageSetup - display the printing PageSetup dialog.
  476. • paste - insert the last chunk of text created by 'cut' 
  477.   or 'copy'
  478. • popd - Pop top dir off dir stack and 'cd' to it.
  479. • posToRowCol <pos> - converts from absolute position to row, col.
  480. • prefixChar - used to further modify the next keystroke 
  481.   combination, in the same manner as using the shift key 
  482.   in the next keystroke
  483. • previousLine - move insertion point to the previous 
  484.   line
  485. • prevLineSelect - extend selection to the previous line
  486. • prevSentence - go to previous sentence ("fill.tcl").
  487. • prevWindow - select previous window
  488. • print - print front window
  489. • processes - returns info of active processes. A list of lists, each 
  490.   sublist contain a file-name, an application signature, the application 
  491.   memory size, and the number of ticks the application has been active.
  492. • prompt <prompt> <default> [<name> <menu item>*] - prompt dialog to 
  493.   the user with a prompt string and a default value. The prompt dialog can 
  494.   optionally include a popup menu specified by 'name' and the succeeding 
  495.   strings. Selection of the popup menu items inserts the item text into the 
  496.   editable dialog item. 'Prompt' returns the value of the editable item. 
  497.   If the 'Cancel' button is selected, the tcl returns an error and your 
  498.   script will be stopped unless you execute the command from 'catch'.
  499. • pushd [<dir>] - If 'dir' specified, push current folder into directory 
  500.     stack and 'cd' to dir. Otherwise, swap current dir w/ top of dir stack.
  501. • putfile <prompt> <original>
  502.   This command will display an SFPutFile() and return the full path name of the 
  503.   selected file, or an empty string if CANCEL button was selected. Original is the 
  504.   default name displayed for the user.
  505. • putScrap [<string>]+ - Concatenate strings together into the system 
  506.   scrap. The scrap can be appended to through calls of the form 'putScrap 
  507.   [getScrap] " another word"'.
  508. • pwd
  509.   This command will return the current working directory, ending in a colon.
  510. • quit - quits ALPHA
  511. • rectMarkHilite - creates a rectangular selection 
  512.   between the mark and the insertion point.
  513. • redo - redo the next action that has been undone but 
  514.   not redone
  515. • regModeKeywords [options] <mode> <keyword list> - Set keywords and comments that 
  516.   Alpha can recognize to color them. Specifically, in mode <mode>, every 
  517.   keyword specified in the list is colored non-black (blue, by default). 
  518.   Comments, if specified by '-e' or '-b' below, are colored red by defualt.
  519.     -a                                Keywords will be *added* to existing mode
  520.                                     keywords. The new keywords can be a different
  521.                                     color than older keywords. This flag can also be
  522.                                     used to modify other attributes, but it cannot be
  523.                                     used to modify colors of existing keywords.
  524.     -m <c>                            Specify a magic character. Every word beginning with the 
  525.                                     magic character is a keyword.
  526.     -e <commentstr>                    Specify a string that begins comments that last to 
  527.                                     the end of the line. 
  528.     -b <comment beg> <comment end>    Specify a pair of strings that bracket a 
  529.                                     comment.
  530.     -c <color>                        Comment color.
  531.     -k <color>                        Keyword color.
  532.     -s <color>                        String color. Alpha can color single-line
  533.                                     strings only, using the simple heuristic
  534.                                     of assuming the first two double quotes
  535.                                     constitute a string. 
  536.     -i <char>                        Specify a character to display differently.
  537.                                     Commonly used for curly braces, etc.
  538.     -I <color>                        Color of above characters.
  539.     Keywords must be less than 20 characters long.
  540. • removeArrDef <var> <field> - Remove the pernament definition of 
  541.  'var(field)'. See 'addDef' and 'addArrDef'.
  542. • removeDef <var> - Remove the permanent definition of 'var'.
  543. • removeFile <fileName>
  544.   This command will delete the file or folder 'fileName'.
  545. • removeMenu <name> - remove menu 'name' from menubar, except those 
  546.   specified by previous 'makeMenuPermanent' calls.
  547. • removeTMark <name> - remove temporary mark.
  548. • replace - replace the current selection
  549. • replaceAll - replace all further occurrences in the current file.
  550. • replace&FindAgain - replace the current selection and find next 
  551.   occurrence.
  552. • replaceString [<str>] - specifies replacement string. Returns current 
  553.   replacement string if no arg.
  554. • replaceText <pos1> <pos2> [text]+ - replaces the text
  555.   between 'pos1' and 'pos2' with 'text', where 'text' can be any number 
  556.   of arguments. Leaves insertion at end, mark at beginning of inserted 
  557.   text. 
  558. • restoreVars - restore variables to saved state, 
  559.   see 'saveVars'
  560. • revert - revert the file to its last saved version
  561. • rmdir <dirname> - remove a directory (folder)
  562. • rowColToPos [-w <win>] <row> <col> - converts to abosolute position.
  563.   Accepts optional -w parameter that allows window to be specified.
  564. • rsearch - reverse incremental search, see 'isearch'.
  565. • save - save current window
  566. • saveAs [def name] - save current window with new name. Optionally takes 
  567.   a default filename. Returns complete path of saved file, if ok hit, 
  568.   otherwise TCL_ERROR returned. 
  569. • saveVars - save variable state, see 'restoreVars'
  570. • scrollDownLine - same action as that which occurs when 
  571.   the down arrow in the vertical scrollbar is selected
  572. • scrollLeftCol - same action as that which occurs when
  573.   the left arrow in the horizontal scrollbar is selected
  574. • scrollRightCol - same action as that which occurs when
  575.   the right arrow in the horizontal scrollbar is 
  576.   selected
  577. • scrollUpLine - same action as that which occurs when 
  578.   the up arrow in the vertical scrollbar is selected
  579. • search  [options…] <pattern> <pos> - 
  580.   -f <num>        - go forward?
  581.   -r <num>        - regular expression?
  582.   -s            - save previous search string and search flags.
  583.   -i <num>        - ignore case?
  584.   -m <num>        - match words?
  585.   -n            - failed search still returns TCL_OK, but null string.
  586.   -l <limit>    - limit on how search goes.
  587.   --             - next arg is the pattern.
  588.  
  589.   Searches for 'pattern' from position 'pos'.  If the search succeeds, a 
  590.   list of two positions will be returned.  The first is the starting position 
  591.   of the match, the second is one past the last character. If no '-n', 
  592.   TCL_ERROR returned.
  593. • searchString [<str>] - allows search string to be specified. Returns 
  594.   current searchstring if no arg.
  595. • select [-w <win>] <pos1> <pos2> - selects the text between 'pos1' 
  596.   and 'pos2'.
  597. • selEnd [-w <win>] - returns the end of the hilited selection, or 
  598.   the current insertion point if no text is selected.
  599. • sendOpenEvent [filler] <app name> <file name> - Send an open doc event to 
  600.   another currently running application. If 'filler' is noReply, then a 
  601.   reply is not requested. Otherwise, we wait for a reply and 'filler' is 
  602.   ignored. 
  603. • setFileInfo <file> <field> [arg] - Allows some information to be set 
  604.   for files. Settable fields are 'modified', 'created', 'creator', and 'type'.
  605.   All take an argument except 'resourcelen' which just removes the resource fork. 'file' is a complete pathname.
  606. • setFontsTabs - bring up font and tab dialog
  607. • setMark - set the current mark to the insertion point
  608. • setNamedMark [name disp pos end] - set named mark. If optional arguments are 
  609.   present, the mark is created without prompting user. 'disp' is the 
  610.   character position of the start of the first line to be displayed, 
  611.   while 'pos' and 'end' bracket the text to be selected.
  612. • setWinInfo [-w <win>] <field> <arg> - Sets a piece of data about either 
  613.   the current or a specified window. Settable fields 'platform', 'state', 
  614.   'read-only', 'tabsize', 'dirty', and 'shell'. 'shell' means that dirty 
  615.   flag ignored and undo off.
  616. • shell - open the Tcl shell.
  617. • sizeWin [win name] <width> <height> - sets size of current or specified window.
  618.   The window name can be "StatusWin", although only the width can be 
  619.   changed.
  620. • spacesToTabs - convert spaces in selection to tabs
  621. • specToPathName [hex data] - given an FSSpec in hex form (as that 
  622.   returned by aebuild, for instance, see the definition of thinkFileName 
  623.   in :Tcl:SystemCode:think.tcl), return a complete pathname.
  624. • splitWindow [percent] - toggle having window split into two panes. 
  625.   Optional arg specifies percent of window to allocate to the first pane. 
  626. • startEscape - used to further modify the next 
  627.   keystroke combination, in the same manner as using the 
  628.   shift key in the next keystroke
  629. • startKeyboardMacro - start recording keyboard macro
  630. • statusPrompt <prompt> [<func>] - Prompt in the status window. If 'func' 
  631.   is present, call this routine at each key-press with the current 
  632.   contents of the status line and the key, insert into statusline 
  633.   whatever is returned by the func. Command-v pastes the current (<80 
  634.   char) clipboard contents on the status line.
  635. • substituteVars <string> - Takes a single string and
  636.   substitutes for all variables inside it, regardless of
  637.   depth. Unfortunately, you currently need to make 'global var' 
  638.   declarations in the proc you call this for each 'var' that might need 
  639.   to be substituted in the string (see proc.tcl for examples).
  640. • switchTo <appName> - Switches to application 'appName'.
  641. • tab - insert a tab
  642. • tabsToSpaces - convert tabs in selection to spaces.
  643. • ticks
  644.   Returns the current TickCount. Ticks are 60ths of a seconds. TickCount is the 
  645.   number of ticks since the Macintosh was started. The command:
  646.         puts stdout [expr "[ticks] / 60"]
  647.   will print the number of seconds since the Macintosh was booted.
  648. • toggleScrollbar - toggles horizontal scrollbar on frontmost window. 
  649.   Will not succeed if scrollbar scrolled.
  650. • traceFunc on <funcName> <winName> Trace 'funcName', send output to 
  651.                                     'winName'. 
  652.   traceFunc off                        Turn function tracing off.
  653.   traceFunc status                    Display current tracing status.
  654. • unascii  (see bindings)
  655. • unbind  (see bindings)
  656. • undo - undo the last action that has not been undone
  657. • unfloat <float num> - removes specified floating window. W/ no options 
  658.   lists all floating windows.
  659. • upcaseRegion - convert all lowercase letters to 
  660.   uppercase in the current region
  661. • upcaseWord - convert all lowercase letters to 
  662.   uppercase in the current word
  663. • version - Return string of the form "Alpha Version 5.31, Feb. 15, 1993".
  664. • watchCursor - turns the cursor into a a watch cursor.
  665. • wc <file>... - counts chars, words, lines of input files.
  666. • winNames [-f] - return a TCL list of all open windows. If '-f' option 
  667.   specified, complete pathnames are returned.
  668. • wrap - see the section on "Fill" routines.
  669. • wrapText
  670. • xtclcmd [-f filename] <cmdname> [argument_list]*
  671.   This command will load the external command cmdname and pass it the argument 
  672.   list [ cmdname argument_list... ]. External command are code resources of type 
  673.   XTCL. They may be located in the resource fork of the tickle application, or they 
  674.   may be located in a file named XTCL File in the same directory as the tickle 
  675.   application. If the optional -f filename is included, the external command will first 
  676.   be loaded from filename before the other two files.
  677.   See the appendix for a detailed description of the external tcl command interface. 
  678.   See the accompanying sources for an example of writing an XTCL.
  679. • yank - insert the last piece of deleted text of less
  680.   than 1k. Consecutive deletes are concatenated.
  681.   together.
  682. • zapInvisibles - removes chars < ascii 32, except for
  683.   LF's and CR's.
  684. • zoom - zooms the current window
  685.